﻿using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Media;
using ReflectionStudio.Core.Events;
using System.Windows.Threading;
namespace WPFExcelReport
{
    public partial class TBTNEXE
    { 
      
        public override void wf_OnMessage(object sender, MessageEventArgs e)
        {
            base.wf_OnMessage(sender, e);
        }
        public TBTNEXE()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_WFEVENTS();
            this.DataContext = MV;
            InitializeComponent();  
        }
      
        public override void ManageCommand(object sender, RoutedEventArgs e)
        {
          
            base.ManageCommand(sender, e);
            if (!IsManage)
            { 
                return;
            } 
            this.Dispatcher.BeginInvoke(DispatcherPriority.Background, new LOADBYAUFDelegate(GO));
        }
        public void GO()
        {
            MessageInfo msg = new MessageInfo();
            msg.Sender = RUNID;
            msg.MSGTYPE = "OPENEXE";
            msg.ACTION = "OPENEXE";
            msg.Where = "WORKFLOW";//important
            msg.What = DLL;
            msg.Details = CMD;
            msg.P1 = STWNW;
            msg.ORDER = KEY;
            msg.KRS = KRS;
            msg.LFD = LFD;
            msg.POS = POS;
            msg.ART = ART;
            msg.VAR = VAR;
            msg.FARBE = FARBE;
            msg.BESCHICH = FINISH;
            msg.DESS = DESS;
            msg.COLORIT = COLORIT;
            CheckEvents("OPENEXE", null, "WORKFLOW", msg);
        }
    }
}
